/*
 * @lc app=leetcode.cn id=1450 lang=typescript
 *
 * [1450] 在既定时间做作业的学生人数
 */

// @lc code=start
function busyStudent(
    startTime: number[],
    endTime: number[],
    queryTime: number
): number {
    let count = 0;
    for (let i = 0; i < startTime.length; i++) {
        const start = startTime[i];
        const end = endTime[i];
        if (queryTime >= start && queryTime <= end) {
            count++;
        }
    }
    return count;
}
// @lc code=end
